/**
 * 位置信息
 */
export interface ComponentAttr {
    x: number
    y: number
    w: number
    h: number
}

/**
 * 设置信息
 */
export interface ComponentConfig {
    isEdit: boolean
    dragable: boolean
    resizable: boolean
}

/**
 * 组件
 */
export abstract class QYComponent {
    id: string
    readonly name: string
    readonly type: string
    title:string
    itemType:0
    isSelect:false
    attr:ComponentAttr={
        x: 10,
        y: 10,
        width: 90,
        height: 20,
    }
    config:ComponentConfig={
        isEdit: false,
        dragable: true,
        resizable: true
    }
    data:object
    style:object
}
